import BaseService from "../base/BaseService";

const tableName="sys_menu"

class SysMenuService extends BaseService{

  constructor(){
    super(tableName);
  }
  tree(){
    let fs = require("fs");
    let data = fs.readFileSync('./api_server/store/data/'+this.tableName+'.json');
    return  JSON.parse(data.toString());
  }
  delete(id) {
    //先判断是否还有子菜单  否则不让删除

  }
}

export  default  new SysMenuService();
